package com.fastloan.mgt.invest.dao;


import com.fastloan.mgt.invest.model.InvestSubject;
import com.fastloan.mgt.invest.model.vo.InvestSubjectCusVo;
import com.fastloan.mgt.invest.model.vo.InvestSubjectVo;
import com.kawins.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface InvestSubjectMapper extends BaseMapper<InvestSubject> {

    /**
     * @param map
     * @return
     */
    List<InvestSubjectVo> investSubjectPageList(Map<String, Object> map);

    /**
     * 项目所有问卷列表
     *
     * @param map 参数Map
     * @return
     */
    List<InvestSubjectCusVo> forCustomerPageList(Map<String, Object> map);

    /**
     * 项目名称验重
     *
     * @param name     　模版名称
     * @param orgTopId 顶级机构ID
     * @return
     */
    List<InvestSubject> haveName(@Param("name") String name, @Param("orgTopId") String orgTopId);
}